package com.framework.boc.admin.security.error;

import com.framework.boc.error.CommonError;

public enum  LoginErrorEnum implements CommonError {

    // 验证相关
    INCORRECT_USERNAME_PASSWORD(2000001, "用户名或密码错误"),

    TOKEN_SIGNATURE_ERROR(2000002, "token签名错误"),

    USER_NOT_FOUND(2000003, "用户未找到"),

    ;

    private int errorCode;
    private String errorMessage;

    LoginErrorEnum(int errorCode, String errorMessage) {
        this.errorCode = errorCode;
        this.errorMessage = errorMessage;
    }

    @Override
    public int getErrorCode() {
        return errorCode;
    }

    @Override
    public String getErrorMessage() {
        return errorMessage;
    }

    @Override
    public void setErrorMessage(String errorMessage) {
        this.errorMessage = errorMessage;
    }
}
